<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Module nod</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>

<h1>Module nod</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>The nod module represents a Node Agent.


<h2><a name="description">Description</a></h2>The nod module represents a Node Agent. The bot spawns 54 Node Agents when starting a game and it holds information about the board.
<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#checkResources-2">checkResources/2</a></td><td>checkResources weight specific resources for our strategy.</td></tr>
<tr><td valign="top"><a href="#init-1">init/1</a></td><td>The init function sets the information to calculate adjacent tiles and nodes and spawns the nod function.</td></tr>
<tr><td valign="top"><a href="#nod-8">nod/8</a></td><td>nod receives messages from the Actuator .</td></tr>
</table>

<h2><a name="functions">Function Details</a></h2>

<h3 class="function"><a name="checkResources-2">checkResources/2</a></h3>
<div class="spec">
<p><tt>checkResources(Val::ValueOfNode, Res::EmptyNewNodeValue) -&gt; NewNodeValue</tt></p>
</div><p>checkResources weight specific resources for our strategy.</p>

<h3 class="function"><a name="init-1">init/1</a></h3>
<div class="spec">
<p><tt>init(Id::NodeId) -&gt; Pid</tt></p>
</div><p>The init function sets the information to calculate adjacent tiles and nodes and spawns the nod function.</p>

<h3 class="function"><a name="nod-8">nod/8</a></h3>
<div class="spec">
<p><tt>nod(Id::AgentIds, Tiles, Adjnodes::AdjNodes, Roads, Value, Resource, Built, Blocked) -&gt; ok</tt></p>
</div><p>nod receives messages from the Actuator . It updates the environment around the node, including the robber position, and calculates its value.</p>
<hr>

<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc, May 20 2011, 17:57:29.</i></p>
</body>
</html>
